//
//  HttpClient.h
//  Yopark
//
//  Created by 王家骏 on 14-10-15.
//  Copyright (c) 2014年 developer. All rights reserved.
//

#import "AFHTTPSessionManager.h"
#import "Consts.h"
@interface YPKHttpClient : AFHTTPSessionManager

+ (instancetype)shareClient;

- (NSURLSessionDataTask *)GET:(NSString *)URLString
                   parameters:(id)parameters
                      success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
                      failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

- (NSURLSessionDataTask *)POST:(NSString *)URLString
                    parameters:(id)parameters
                       success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
                       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

@end
